// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_INV_STORAGE_CHANGE
// * CreateDate    : 2011/9/27 11:24:17
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:17
// * LastChanger   : 2011/9/27 11:24:17
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class InvStorageChangeTable : TableInfo
    {
		public const string C_TableName = "INV_STORAGE_CHANGE";
		
		public const string C_CHANGE_ID = "CHANGE_ID";
		public const string C_PRODUCT_ID = "PRODUCT_ID";
		public const string C_CHANGE_QTY = "CHANGE_QTY";
		public const string C_CHANGE_USER = "CHANGE_USER";
		public const string C_CHANGE_TIME = "CHANGE_TIME";
		public const string C_RELATED_ORDER = "RELATED_ORDER";
		public const string C_REMARK = "REMARK";
		public const string C_LOCATION_ID = "LOCATION_ID";
        public const string C_CHANGE_TYPE = "CHANGE_TYPE";
		
		public InvStorageChangeTable()
        {
            _tableName = "INV_STORAGE_CHANGE";
        }
		
		protected static InvStorageChangeTable _current;
        public static InvStorageChangeTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new InvStorageChangeTable();

            _current.Add(C_CHANGE_ID, new ColumnInfo(C_CHANGE_ID,"ChangeId", true, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID,"ProductId", false, typeof(string)));
            _current.Add(C_CHANGE_QTY, new ColumnInfo(C_CHANGE_QTY,"ChangeQty", false, typeof(decimal)));
            _current.Add(C_CHANGE_USER, new ColumnInfo(C_CHANGE_USER,"ChangeUser", false, typeof(string)));
            _current.Add(C_CHANGE_TIME, new ColumnInfo(C_CHANGE_TIME,"ChangeTime", false, typeof(DateTime)));
            _current.Add(C_RELATED_ORDER, new ColumnInfo(C_RELATED_ORDER,"RelatedOrder", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_LOCATION_ID, new ColumnInfo(C_LOCATION_ID,"LocationId", false, typeof(string)));
            _current.Add(C_CHANGE_TYPE, new ColumnInfo(C_CHANGE_TYPE, "ChangeType", false, typeof(string)));
			
		}
		
		public ColumnInfo CHANGE_ID
        {
            get { return this[C_CHANGE_ID]; }
        }
		
		public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }
		
		public ColumnInfo CHANGE_QTY
        {
            get { return this[C_CHANGE_QTY]; }
        }
		
		public ColumnInfo CHANGE_USER
        {
            get { return this[C_CHANGE_USER]; }
        }
		
		public ColumnInfo CHANGE_TIME
        {
            get { return this[C_CHANGE_TIME]; }
        }
		
		public ColumnInfo RELATED_ORDER
        {
            get { return this[C_RELATED_ORDER]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo LOCATION_ID
        {
            get { return this[C_LOCATION_ID]; }
        }
        public ColumnInfo CHANGE_TYPE
        {
            get { return this[C_CHANGE_TYPE]; }
        }
		
		
	}
}

